//
//  PresentationObject.h
//  OnionHome
//
//  Created by fengjie on 2019/9/13.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"

@class CustomPresentationVc;

NS_ASSUME_NONNULL_BEGIN
typedef void(^cancelBlock)(void);

@interface PresentationObject : NSObject

SingletonH(PresentationObject)
/**弹框视图位置 在调用下面方法之前一定要先给这个赋值*/
@property (nonatomic)CGRect subViewFrame;
/**
 弹出视图
 
 @param presentingViewController 跳转前的原控制器
 @param presentedViewController 将要跳转到的目标控制器
 */
-(void)showPresentingViewController:(UIViewController *)presentingViewController PresentedViewController:(UIViewController *)presentedViewController;
/**点击背景处回调*/
@property (nonatomic,copy)cancelBlock cancelBlock;
/**是否显示顶部叉号和页码点视图，默认不显示*/
@property (nonatomic,assign)BOOL isShowTopView;
/**背景罩层的透明度默认0*/
@property (nonatomic,assign)CGFloat  alpha_bgView;
@end

NS_ASSUME_NONNULL_END
